﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace NLite.NHPersistenceTest
{
    public class NativeSqlTest:TestBase
    {
        [Test]
        public void test_Get()
        {
            UserInfo user = new UserInfo()
            {
                Name = "TestName",
                Age = 100
            };
            repository.SaveOrUpdate(user);

            var user2 = query.FirstOrDefault(p => p.Id == user.Id);
            Assert.AreEqual(user, user2);
            repository.Delete(user.Id);
        }
    }
}
